package com.zy.controller;

import com.zy.bean.bo.chart.ChartRecordsBo;
import com.zy.bean.po.ChartRecords;
import com.zy.service.ChartRecordsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanhuafeng
 * @version V1.0
 * @description
 * @date 2023/7/19
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/v1/chart")
public class ChartController {
    private final ChartRecordsService chartRecordsService;

    /**
     * 创建流程图记录
     */
    @PostMapping("")
    public ChartRecords createChartRecords(@RequestBody ChartRecordsBo chartRecordsBo) {
        return chartRecordsService.createChartRecords(chartRecordsBo);
    }

}
